export function getUserInfo(){
  const data = localStorage.getItem("userInfo")
  return data ? JSON.parse(data) : {id: null}
}